package com.neiquan.backstage.platform_article.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neiquan.backstage.common.util.ExtraSpringHibernateTemplate;
import com.neiquan.backstage.platform_article.PlatformArticleService;
import com.neiquan.backstage.pub.bsc.dao.po.PlatformArticle;

@Service
public class PlatformArticleServiceImpl implements PlatformArticleService {
	private static Class<?> poc = PlatformArticle.class;
	@Autowired
	private ExtraSpringHibernateTemplate extraSpringHibernateTemplate;

	@Override
	public PlatformArticle queryById(Integer articleId) {
		return extraSpringHibernateTemplate.findFirstOneByPropEq(poc, "articleId", articleId);
	}
}
